--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 933792b5d6f1d66634b8d4c90e53199cdbaf8df1
Parents : 6396690
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-11-22T14:25:21+01:00
Added intent filters for paper message ingestion
Changes
Diff
diff --git a/sbapp/patches/intent-filter.xml b/sbapp/patches/intent-filter.xml
index 4cb48af8..48850afa 100644
--- a/sbapp/patches/intent-filter.xml
+++ b/sbapp/patches/intent-filter.xml
@@ -3,5 +3,21 @@
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
+<!-- This intent filter allows Sideband to handle clickable LXM links -->
+<intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ <data android:scheme="lxm"/>
+</intent-filter>
+
+<!-- This intent filter allows opening scanned LXM URLs directly in Sideband -->
+<intent-filter>
+ <action android:name="android.intent.action.WEB_SEARCH" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.LAUNCHER" />
+</intent-filter>
+
+
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
\ No newline at end of file
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────